<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of DirectoWebService
 *
 * @author aneto
 */
class DirectoInputWebService extends SimpleWebService{

	public function getRequest($type, $params){
		if(!is_string($type))
			throw new Exception('Wrong type for WebService !');

		switch(strtolower($type)){
			case 'product':
				return new PostProducts($params);
				break;
			default:
				throw new Exception('Wrong type');
		}
	}
}
?>
